package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkPaperWinnersMapper;
import com.ruoyi.system.domain.WorkPaperWinners;
import com.ruoyi.system.service.IWorkPaperWinnersService;

/**
 * 论文完成人Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-10
 */
@Service
public class WorkPaperWinnersServiceImpl implements IWorkPaperWinnersService 
{
    @Autowired
    private WorkPaperWinnersMapper workPaperWinnersMapper;

    /**
     * 查询论文完成人
     * 
     * @param id 论文完成人主键
     * @return 论文完成人
     */
    @Override
    public WorkPaperWinners selectWorkPaperWinnersById(Long id)
    {
        return workPaperWinnersMapper.selectWorkPaperWinnersById(id);
    }

    /**
     * 查询论文完成人列表
     * 
     * @param workPaperWinners 论文完成人
     * @return 论文完成人
     */
    @Override
    public List<WorkPaperWinners> selectWorkPaperWinnersList(WorkPaperWinners workPaperWinners)
    {
        return workPaperWinnersMapper.selectWorkPaperWinnersList(workPaperWinners);
    }

    /**
     * 新增论文完成人
     * 
     * @param workPaperWinners 论文完成人
     * @return 结果
     */
    @Override
    public int insertWorkPaperWinners(WorkPaperWinners workPaperWinners)
    {
        return workPaperWinnersMapper.insertWorkPaperWinners(workPaperWinners);
    }

    /**
     * 修改论文完成人
     * 
     * @param workPaperWinners 论文完成人
     * @return 结果
     */
    @Override
    public int updateWorkPaperWinners(WorkPaperWinners workPaperWinners)
    {
        return workPaperWinnersMapper.updateWorkPaperWinners(workPaperWinners);
    }

    /**
     * 批量删除论文完成人
     * 
     * @param ids 需要删除的论文完成人主键
     * @return 结果
     */
    @Override
    public int deleteWorkPaperWinnersByIds(Long[] ids)
    {
        return workPaperWinnersMapper.deleteWorkPaperWinnersByIds(ids);
    }

    /**
     * 删除论文完成人信息
     * 
     * @param id 论文完成人主键
     * @return 结果
     */
    @Override
    public int deleteWorkPaperWinnersById(Long id)
    {
        return workPaperWinnersMapper.deleteWorkPaperWinnersById(id);
    }
}
